package com.miracle9.game.dao;
import com.miracle9.game.entity.DailyActive;
import java.util.List;
import org.springframework.stereotype.Repository;

@Repository
public class DailyActiveServiceDao extends SqlOperating<DailyActive, Integer>
{
  public List<DailyActive> getDailyActivesByTypeAndInterval(String startDate, String endDate, int type)
  {
    return q_CreateSqlList("from DailyActive where type =? and datetime>=? and datetime<? order by id desc", new Object[] { Integer.valueOf(type), 
      startDate, endDate });
  }
  
  public void addDailyActive(DailyActive dailyActive)
  {
	  save(dailyActive);
  }
}

